package com.wdy.visitor;

/**
 * @ClassName: DocVisitor
 * @Description: TODO
 * @Date: 2019/12/30 14:21
 * @Author: wangdy001
 * @Version: 1.0
 */
public class DocVisitor implements ModemVisitor, ZoomVisitor, HayesVisitor {
    @Override
    public void visit(Hayes hayes) {
        System.out.println(this.toString() + "visit hayes:" + hayes.toString());
    }

    @Override
    public void visit(Zoom zoom) {
        System.out.println(this.toString() + "visit zoom:" + zoom.toString());
    }

    @Override
    public String toString() {
        return "DocVisitor{}";
    }
}
